New variable 'revert-buffer-restore-functions' (bug#69511)
authorJuri Linkov <juri@linkov.net>
Mon, 3 Jun 2024 16:55:47 +0000 (19:55 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 3 Jun 2024 16:55:47 +0000 (19:55 +0300)
commita525cfb3af0c49c5c64e8af548ab23d086348fed
tree860c3f688e5734bac96d6acf7c8b485b34fde86b
parent58a26db6261b752a34957a6554820a7cf5c05fc2
New variable 'revert-buffer-restore-functions' (bug#69511)

* doc/lispref/backups.texi (Reverting):
Add documentation for 'revert-buffer-restore-functions'.

* lisp/files.el (revert-buffer-restore-functions): New variable.
(revert-buffer-restore-read-only): New function.
(revert-buffer): Use 'revert-buffer-restore-functions' with
the default value 'revert-buffer-restore-read-only' (bug#69511).

* lisp/buff-menu.el (Buffer-menu-mode): Add hook
'revert-buffer-restore-functions' to restore
outline-minor-mode highlighting.
doc/lispref/backups.texi
etc/NEWS
lisp/buff-menu.el
lisp/files.el